package com.example.lifecycledemo;

import android.util.Log;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.OnLifecycleEvent;

/**
 * @author: tuyrt7 on 2020/8/28.
 * Describe:
 */
public class ServiceObserver implements LifecycleObserver {
    private static final String TAG = "ServiceObserver";

    @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
    void start() {
        Log.d(TAG, "start: ");
    }
}
